<?php /* Smarty version Smarty-3.1.14, created on 2017-08-17 17:51:09
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\category_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:301235995670d7ea2f7-37721309%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5552aa7326cf127fe801fce236f48921f3632609' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\category_edit.html',
      1 => 1502498116,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '301235995670d7ea2f7-37721309',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'cat_info' => 0,
    'cat_type' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5995670d81b5c5_39139572',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5995670d81b5c5_39139572')) {function content_5995670d81b5c5_39139572($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
input {	width: 200px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>编辑分类</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
  	<input type="hidden" name="cat_id" value="<?php echo $_smarty_tpl->tpl_vars['cat_info']->value['cat_id'];?>
" />
    <table style=" width:100%;" cellpadding="0" cellspacing="0" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 分类名称:</td>
          <td><input type="text" name="cat_name" value="<?php echo $_smarty_tpl->tpl_vars['cat_info']->value['cat_name'];?>
" required></td>
        </tr>
        <tr>
          <td class="firtd"> 上级分类:</td>
          <td><select name="parent_id"><option value="0">=顶级=</option><?php echo $_smarty_tpl->tpl_vars['cat_type']->value;?>
</select></td>
        </tr>
        <tr>
          <td class="firtd"> 是否显示:</td>
          <td><input style="width:12px;vertical-align:middle;cursor:pointer;" type="radio" name="is_show" <?php if ($_smarty_tpl->tpl_vars['cat_info']->value['is_show']==1){?>checked<?php }?> value="1"> 是 &nbsp;&nbsp;&nbsp;&nbsp;<input style="width:12px;vertical-align:middle;cursor:pointer;" <?php if ($_smarty_tpl->tpl_vars['cat_info']->value['is_show']==0){?>checked<?php }?> type="radio" name="is_show" value="0"> 否</td>
        </tr>
        <tr>
          <td class="firtd"> 排序:</td>
          <td><input type="text" name="sort_order" value="<?php echo $_smarty_tpl->tpl_vars['cat_info']->value['sort_order'];?>
" required></td>
        </tr>
        <tr>
          <td class="firtd"> 关键词:</td>
          <td><input style="width:350px;" name="cat_key" type="text" value="<?php echo $_smarty_tpl->tpl_vars['cat_info']->value['keywords'];?>
"></td>
        </tr>
        <tr>
          <td class="firtd"> 描述:</td>
          <td><textarea name="cat_desc" style="min-height:120px; max-height:120px;"><?php echo $_smarty_tpl->tpl_vars['cat_info']->value['cat_desc'];?>
</textarea></td>
        </tr>
        <tr>
          <td class="style1">&nbsp;</td>
          <td>
              <a href="JavaScript:void(0);" class="btn" onclick="reset()"><span>重置</span></a>
              <a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认提交</span></a>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="reset" id="cz" style="display: none;">
    <input type="submit" id="tj" style="display:none;";>
  </form>
</div>
</body>
<script>
    // 重置方法
    function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script>
</html><?php }} ?>